<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateServiceTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('service', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->default('')->comment('业务类别名称');
            $table->tinyInteger('status')->default(1)->comment('状态 0-禁用 1-启用 默认1');
            $table->softDeletes();
            $table->timestamps();
        });
        \DB::statement("ALTER TABLE `service` comment '业务类别（服务）表'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('service');
    }
}
